package camel.client;

import java.awt.Color;
import java.io.Serializable;

import camel.server.session.ParticipantCursor;


public class ParticipantStatus implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4240074125684894200L;
	
	private String id;
	private String statusDesc;
	private Color color;
	private Boolean facilitator = new Boolean(false);
	
	public ParticipantStatus (ParticipantCursor cursor) {
		id = cursor.getMemberAccount().getId();
		facilitator = cursor.isFacilitator();
		color = cursor.getColor();
		statusDesc = cursor.getRecentActivity();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getStatusDesc() {
		return statusDesc;
	}

	public void setStatusDesc(String statusDesc) {
		this.statusDesc = statusDesc;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Boolean isFacilitator() {
		return facilitator;
	}

	public void setFacilitator(Boolean isFacilitator) {
		if (isFacilitator == null) {
			this.facilitator = false;
		}
		else {
			this.facilitator = isFacilitator;
		}
	}
}
